package com.kk.xhr.admin.controller.request;

import com.kk.xhr.common.pojo.EmployeeFromEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 招聘添加请求
 *
 * @author kkmystery
 * @version 1.0 2021/4/6
 * @since 1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RecruitAddRequest {
    @Size(min = 1, max = 20)
    @NotNull
    private List<Long> userIds;
    @NotBlank
    private String title;
    /** 备注 */
    @NotBlank
    private String remark;
    /** 职位ID */
    @NotNull
    private Long positionId;
    /** 截至时间 */
    @NotNull
    private LocalDateTime endDate;
    /** 总人数 */
    @Min(1)
    private Integer total;
    /** 招聘形式 */
    @NotNull
    private EmployeeFromEnum form;
}
